function DOMAware() {
    var _dom;
    this.getDOM = function() {
        if (_dom == null) {
            this._initDOM();
        }
        return _dom;
    };
    this._initDOM = function() {
        var address = this.getAddress();
        //debugger;
        var request = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
                .createInstance(Components.interfaces.nsIXMLHttpRequest);
        request.open('GET', address, false);
        request.onload = function() {
            var data = request.responseText;
            //_dom = SSRIQuery(Util.html_to_dom("<html><body><div></div></body></html>"));
            _dom = SSRIQuery("<div>" + data + "<div>",window.content.document)
        };
        request.onerror = function(e) {
            Logger.error("Error " + e.target.status + " occurred while receiving the document.");
        };
        request.send(null);
    };
}
DOMAware.prototype.getAddress = function() {
    return null;
};

